<template>
<!-- 引入头 身体 尾 -->
    <div class="container">
        <my-header class="header"></my-header>
        <my-main class="main"></my-main>
        <my-footer class="footer"></my-footer>
    </div>
</template>

<script>
import Header from '../components/Header/header';
import Footer from '../components/Footer/footer';
import Main from '../components/Main/main';
export default {
    components:{
        "my-header":Header,
        "my-footer":Footer,
        "my-main":Main,
    }
}
</script>

<style scoped>
    *{
        transition: background 2s,margin 2s,padding 2s;
    }
    .container{
        min-height: 100vh;
        display: flex;
        flex-flow: column;
    }
    .header{
        z-index: 1;
        height: var(--headerHeight);
        background-color: var(--headerColor);
    }
    .main{
        flex: 1;
        background-color: var(--mainColor);
        margin-bottom: var(--footerHeight);
    }
    .footer{
        position: fixed;
        bottom: 0;
        width: 100%;
        z-index: 1;
        height: var(--footerHeight);
        background-color: var(--footerColor);
    }
    @media screen and (max-width: 1300px){
        .main{
            width: 100%;
        }
    }
    @media screen and (max-width: 768px){
        .footer{
            /* display: none; */
        }
    }
</style>